var express = require('express');
const TodoController = require('../controllers/TodoController');
var router = express.Router();
router.get('/getAllTodos', TodoController.getAllTodos);
router.get('/getDones/:bid', TodoController.getDones);
router.get('/getUpDones/:bid', TodoController.getUpDones);
router.put('/changeState', TodoController.changeState);
router.post('/newTodoByUid', TodoController.newTodoByUid);
router.delete('/deleteTodoByTid/:tid', TodoController.deleteTodoByTid);
module.exports = router;